package org.xq.modules.seckill.mapper;

import org.apache.ibatis.annotations.Select;
import org.xq.common.mapper.CoreMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import org.xq.modules.seckill.domain.XqStoreSeckill;

import java.util.List;

/**
* @author admin
* @date 2021-05-13
*/
@Repository
@Mapper
public interface StoreSeckillMapper extends CoreMapper<XqStoreSeckill> {

    @Select("select * from xq_store_seckill s where now() between s.start_time_date and s.end_time_date")
    public List<XqStoreSeckill> selectSeckillOfNotStart();
}
